const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const resolveApp = require('./path');

module.exports = {
  entry: './src/main.js',
  output: {
    filename: 'js/[name][hash:6].js',
    path: resolveApp( './dist'),
    // publicPath: '/'
  },
  mode: 'production',
  plugins: [
    new CleanWebpackPlugin(),
  ]
}